<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>头部</title>
    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="stylesheet" href="assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/reset-global.css" />
    <link rel="stylesheet" href="assets/css/website.css" />
    <script src="assets/js/jquery.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
</head>
<body>
<!-- 头部 -->
<div class="top">
    <div class="header same">
        <div class="top center flex">
            <div class="header_left flex">
                <img th:each="i1:${#numbers.sequence(0,4)}" th:src="${head[i1].imgUrl1}" />
                <!--<img src="assets/img/top2.png" alt="">
                <img src="assets/img/top3.png" alt="">
                <img src="assets/img/top4.png" alt="">
                <img src="assets/img/top5.png" alt="">-->
            </div>
            <div class="header_right  flex" >
                <div class="emli flex">
                    <img th:src="${head[5].imgUrl1}" alt="">
                    <p>[[${head[5].description}]]</p>
                </div>
                <div class="emli flex">
                    <img th:src="${head[6].imgUrl1}" alt="">
                    <p>[[${head[6].description}]]</p>
                </div>
            </div>
        </div>
    </div>
<!--     top_header -->
    <div class="nav same">
        <div class="navs center flex">
            <div class="logo">
                <img th:src="${head[7].imgUrl1}" alt="">
            </div>
            <ul class="flex">
                <li><a href="index" name="index" class="active">[[${head[7].title}]]</a></li>
                <li><a href="blog"  name="blog">[[${head[8].title}]]</a></li>
                <li><a href="aboutus">[[${head[9].title}]]</a></li>
                <li><a href="contact">[[${head[10].title}]]</a></li>
            </ul>
        </div>
    </div>
<!--     top_nav -->
    <div class="same banner">
        <div class="banner_cot center">
            <div class="wenzi">
                <h1>[[${head[11].title}]]</h1>
                <p>[[${head[11].description}]]</p>
            </div>
            <div class="search">
                <input type="search" id="searchContent" placeholder="Where are you going ?">
                <button type="button" onclick="searchClick()">
                    <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
                    [[${head[12].title}]]
                </button>
            </div>
            <div class="paris">
                <p>[[${head[13].title}]]</p>
            </div>
        </div>
    </div>
    <!-- top_bnaner -->
</div>
<script>
    function searchClick(){
        let val = $("#searchContent").val();
        let a = "http://localhost:8080/pub_head?searchKey="+val;
        location.href =a ;
    }
    /*$(function (){
        $(".flex li").each(function(){

            alert($(this).attr("name"));
            alert(window.location);
            if(a.attr("href")==String(window.location)){
                a.addClass("active")
            }

        })
    })*/

</script>
</body>
</html>
